TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
62 stars 29 forks source link

Display title module for wiki pages #1612

Open Randomno opened 1 year ago

Randomno commented 1 year ago

Regardless of #1611 this is a useful tool.

Example usage: [module:displaytitle|SDA runs without a published TAS]

Edit: Should be its own field rather than in the article text.

Result:

image

Compare MediaWiki's {{DISPLAYTITLE}}: https://www.mediawiki.org/wiki/Extension:Display_Title

vadosnaprimer commented 1 year ago

I like this much more.

Randomno commented 1 year ago

Might be best to add a DisplayName attribute to WikiPage class? And set the display name with a separate input box instead of a module.

nattthebear commented 1 year ago

No, this is not good. If we want the presentation name of the article to be separate from the actual name, we need to store it on the entity and not buried in the markup.

YoshiRulz commented 1 month ago

On a related note, could we have a way to set <link rel="canonical"/>? It must appear in the <head/>.