Jump to content

User talk:Plankton/messing around with templates: Difference between revisions

Add topic
From Consumer Rights Wiki
Latest comment: 31 October 2025 by Plankton
templates: Reply
Plankton (talk | contribs)
templates: Reply
 
Line 12: Line 12:


:Also @[[User:Plankton|Plankton]] if you know HTML tags you already know a lot about how templates work as there are loads of html tags compatible with mediawiki, like <nowiki><span>.</nowiki> [[User:AnotherConsumerRightsPerson|<i><b>AnotherConsumerRightsPerson</b></i>]] ([[User talk:AnotherConsumerRightsPerson|talk]]) 07:53, 30 October 2025 (UTC)
:Also @[[User:Plankton|Plankton]] if you know HTML tags you already know a lot about how templates work as there are loads of html tags compatible with mediawiki, like <nowiki><span>.</nowiki> [[User:AnotherConsumerRightsPerson|<i><b>AnotherConsumerRightsPerson</b></i>]] ([[User talk:AnotherConsumerRightsPerson|talk]]) 07:53, 30 October 2025 (UTC)
::hi yes, i know html. thank you for the info. i will be messing more with this soon [[User:Plankton|Plankton]] ([[User talk:Plankton|talk]]) 01:22, 31 October 2025 (UTC)

Latest revision as of 01:22, 31 October 2025

templates

[edit source]

@Plankton here are some source editor only tags for templates.

  • <noinclude> - makes the text that you write following it not appear on the actual template. Good for documentation. To stop the tag from reading any more text, put </noinclude>. Example: <noinclude>You use this template to say hi to someone.</noinclude>Hi!
  • <includeonly> - makes text that you write only appear in the template but not when you search it up. To stop the tag from reading any more text and making it only appear in the template, put </includeonly>. Example: <includeonly>Template text</includeonly>
  • Parameters - these are the things that you type in when you want something to come up, like the reason one in citation needed which adds a reason to the citation needed. To add one, simply type {{{parametername}}} and replace parametername with the name of your parameter. If you want to have parameters without the parameter name actually being needed to be typed, then simply make the parameter name 1, which will look like {{{1}}}. Example: "citation needed {{{reason}}}"<noinclude> The reason parameter in this case is put next to the citation needed part, so to summon it in source editor, if you put {{citation needed|reason=idk you figure out yourself}} then "citation needeed idk you figure out yourself" will come up.

I really hope this was clear, if you want to learn more then there is some cool stuff about this at mediawiki.org, especially if you go to Help:Extension:ParserFunctions there if you want to get your brain fried like mine did.which isnt a good thing... AnotherConsumerRightsPerson (talk) 07:26, 30 October 2025 (UTC)Reply

Also @Plankton if you know HTML tags you already know a lot about how templates work as there are loads of html tags compatible with mediawiki, like <span>. AnotherConsumerRightsPerson (talk) 07:53, 30 October 2025 (UTC)Reply
hi yes, i know html. thank you for the info. i will be messing more with this soon Plankton (talk) 01:22, 31 October 2025 (UTC)Reply