Difference between revisions of "Template:Fix"

From CWCki
Jump to navigation Jump to search
(this is inefficient, but it was the only way i could get this not to red-link out. if a more experienced editor knows how to do this with less code, feel free to go at it)
(Whoops)
Tag: Undo
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sup>{{#ifexist: {{{link|{{{text}}}}}} | [[{{{link|{{{text}}}}}}|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text}}}''<nowiki>]</nowiki>]]|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text|needs fix}}}''<nowiki>]</nowiki>}}</span></sup><includeonly>{{{cat|}}}</includeonly><noinclude>
<sup><!--
 
LINK
 
-->{{#ifexist: {{{link|{{{text}}}}}} | [[{{{link|{{{text}}}}}}<!--
 
HOVER TEXT
 
-->|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text}}}''<nowiki>]</nowiki>]]|<span title="{{{tooltip|}}}"><!--
 
ACTUAL DISPLAYED TEXT
 
-->[''{{{text|needs fix}}}'']}}</span></sup><!--
 
CATEGORIES
 
--><includeonly>{{#ifeq: {{NAMESPACE}} |
  | {{#if: {{{nocat|}}}
    | <!-- If marked with nocat=true, category should be left out entirely. -->
    | {{{category|{{{cat|[[Category:Articles needing cleanup]]}}}}}}
  }}
}}</includeonly><noinclude>
{{Usage|1=Meta-template for having inline notices. If <code>link</code> is left blank, it will default to whatever the text is, as long as that is a valid link.
{{Usage|1=Meta-template for having inline notices. If <code>link</code> is left blank, it will default to whatever the text is, as long as that is a valid link.
'''<pre>Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.}}</pre>'''  
'''<pre>Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}</pre>'''  




- Displays:Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.}}
- Displays:Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}
}}
}}
[[Category: Inline templates|{{PAGENAME}}]]</noinclude>
[[Category: Inline templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 00:33, 19 January 2022

[needs fix]

Usage

These usage notes will not be included in articles bearing this template.

Meta-template for having inline notices. If link is left blank, it will default to whatever the text is, as long as that is a valid link.

Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}


- Displays:Chris is literally Hitler.[a-logging]