Template:LP imported: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
(Testing original template idea)
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Ambox
| name  = LP imported
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| small = {{{small|}}}
| type  = notice
| issue = This {{{1|{{#switch: {{NAMESPACE}}|Template=template|Help=Help page|Leftypedia=Leftypedia namespace page|Article = article|page}}}}} '''has been imported''' from an archived version of Leftypedia. Its contents may be outdated. Feel free to make changes, but be prepared to defend your contributions at the [[{{TALKPAGENAME}}|talk&nbsp;page]].
| talk  = {{{talk|}}}
| date  = {{{date|}}}
}}<noinclude>
==Documentation==
The template will detect <code><nowiki>Template:</nowiki></code>, <code><nowiki>Help:</nowiki></code>, and <code><nowiki>Leftypedia:</nowiki></code> namespaces, and print the proper description, defaulting to "This page..." for all other namespaces. No parameters are needed. The one optional parameter is to replace the "article/page" text. For example:
<nowiki>{{LP imported|your text here}}</nowiki>
yields:
{{Ambox
{{Ambox
| name  = LP imported
| name  = LP imported
Line 5: Line 18:
| type  = notice
| type  = notice
| image = none
| image = none
| issue = This {{#switch: {{NAMESPACE}}|Template=template|Help=Help page|Leftypedia=Leftypedia namespace page|Article = article|page}} '''has been imported''' from an archived version of Leftypedia. '''Do NOT''' make any changes without consensus on the Matrix server or the [[{{TALKPAGENAME}}|talk&nbsp;page]].
| issue = This your text here '''has been imported''' from an archived version of Leftypedia. '''Do NOT''' make any changes without consensus on the Matrix server or the [[{{TALKPAGENAME}}|talk&nbsp;page]].
| talk  = {{{talk|}}}
| talk  = {{{talk|}}}
| date  = {{{date|}}}
}}</noinclude>
}}
<includeonly>[[category:Recent imports]]</includeonly>
<!-- <includeonly>[[category:Recent imports]]</includeonly> -->

Latest revision as of 20:44, 27 April 2024

Documentation

The template will detect Template:, Help:, and Leftypedia: namespaces, and print the proper description, defaulting to "This page..." for all other namespaces. No parameters are needed. The one optional parameter is to replace the "article/page" text. For example:

{{LP imported|your text here}}

yields: