Template:Recommendations: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
m (Undo revision 186152 by Z929669 (talk))
Tag: Undo
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly> <div class="custom-recommendations">
<includeonly> <div class="custom-recommendations">
==={{Fc|important|Guide/Version-Specific Mod Recommendations}}===
==={{Fc|important|Guide/Version-Specific Mod Recommendations}}===
<div class="recommendation-tables">{{#if:{{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=|mainlabel=-|link=none}} | {{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=Existing Guides|link=none|mainlabel=-|format=table}} {{#arraymap:{{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=|mainlabel=-|link=none}}|,|x|{{#set:Version=x}}|\s}} | <span class="dimtx">&nbsp;&nbsp;No guides are using this mod</span><br /><br />}}{{#if:{{subpages}} | <div class="listtable">{{Special:Prefixindex|prefix={{FULLPAGENAME}}/|hideredirects=1|stripprefix=1}}</div> | <span class="dimtx">No existing recommendation versions</span><br />}}</div>{{Fc|important|Version-specific Recommendations must use a Version string equal to that of both ModList and Guide!}}
<div class="recommendation-tables">{{#if:{{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=|mainlabel=-|link=none}} | {{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=Existing Guides|link=none|mainlabel=-|format=table}} {{#arraymap:{{#ask:[[Game::{{NAMESPACE}}]][[ModName::{{FULLPAGENAME}}]]|?Version=|mainlabel=-|link=none}}|,|x|{{#set:Version=x}}|\s}} | <span class="dimtx">&nbsp;&nbsp;No guides are using this mod</span><br /><br />}}<div class="listtable">{{Special:Prefixindex|prefix={{#replace:{{FULLPAGENAME}}|&#38;|<nowiki>&</nowiki>}}/|hideredirects=1|stripprefix=1}}</div></div><span class="hltx">Type a version string using the format indicated by the placeholder text below.&nbsp;</span>{{#info:Copy/paste the intended guide version from the "Existing Guides" table above (if it exists) into the field below. For unofficial user-created guides, use the format indicated by the placeholder text.|note}}&nbsp;{{#info:Editors: Please DO NOT use wiki headings inside of custom Recommendations and also avoid using templates if at all possible! ''Template calls add to the max threshold, and headings mess up the guide ToC.''|warning}}
{{Fc|instruction|{{Fs|0.85em|Copy/paste the intended guide version from the "Existing Guides" table above (if it exists) into the field below.}} }}<br />
{{#forminput:form=VersionModRecommendations|query string=super page={{FULLPAGENAME}}|placeholder=unofficial-myUserName-#.#.#}}</div>
{{Fs|0.85em|{{Fc|important|Editors:}} {{Fc|instruction|Please DO NOT use wiki headings and avoid template calls when adding or editing Recommendations!}} }}
{{#forminput:form=VersionModRecommendations|query string=super page={{FULLPAGENAME}}|placeholder=unofficial-myusername-#.#.#}}</div>
==Recommendations==
==Recommendations==
{{#ifeq: {{{enabledetailed|}}} | Yes | {{#set:HasDetails=true}} {{#vardefine:note|{{{detailed}}} }}<!--{{#vardefine:note|[{{canonicalurl:{{FULLPAGENAME}}#Recommendations}} Detailed instructions available]}}--> {{{detailed}}} | {{#set:HasDetails=false}} {{#if: {{{short|}}} | {{#vardefine:note|{{{short}}} }} {{#var:note}} | }} }}
{{#ifeq: {{{enabledetailed|}}} | Yes | {{#set:HasDetails=true}} {{#vardefine:note|{{{detailed}}} }}<!--{{#vardefine:note|[{{canonicalurl:{{FULLPAGENAME}}#Recommendations}} Detailed instructions available]}}--> {{{detailed}}} | {{#set:HasDetails=false}} {{#if: {{{short|}}} | {{#vardefine:note|{{{short}}} }} {{#var:note}} | }} }}
{{#if: {{#var:note}} | {{#set:Recommendations={{#var:note}}}} | No recommendations currently available. }}</includeonly><noinclude>__NOTOC__ [[Category:STEP]]
{{#if: {{#var:note}} | {{#set:Recommendations={{#var:note}}}} | No recommendations currently available. }}</includeonly><noinclude>__NOTOC__ [[Category:Administrative Templates]]


==Purpose & Usage==
==Purpose & Usage==
Line 13: Line 11:


== See Also ==
== See Also ==
<!--
* [[:Template:Mod]]
*[[:RELATED TEMPLATE NAME AND ARGUMENTS]]
* [[:Template:VersionModRecommendations]]
-->
None


</noinclude>
</noinclude>

Latest revision as of 20:21, May 23, 2023


Purpose & Usage[edit source]

This is a core site template that is used on all mod pages to display official STEP recommendations. This template is accessible to wiki editors, but this template page is protected.

See Also[edit source]