Difference between revisions of "Template:Build"
From King Arthur's Gold Wiki
m (to find out if many pages use the "up-to-date" term instead of the build number) |
m (added a workaround to make all pages with build 346 show up as 349...see comment for more infos) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{Version}}} | <includeonly>{{#switch: {{{Version}}} | ||
| old = <div class="build buildOld"> This page is not up-to-date.[[Category:Not_Up-to-date]] | | old = <div class="build buildOld"> This page is not up-to-date.[[Category:Not_Up-to-date]] | ||
+ | |||
| up-to-date = <div class="build buildLatest"> This page is up-to-date.[[Category:Up-to-date]] | | up-to-date = <div class="build buildLatest"> This page is up-to-date.[[Category:Up-to-date]] | ||
+ | |||
+ | | 346 = <div class="build buildLatest"> This page is in line with the latest [[Version_history#349|build 349]]. <!-- Pushes every "build 346" page to 349 since there is no new content. So we don't need to update every single one of them. Only a temporary solution until I come up with a better idea how to push every page to the next build number if there are no significant changes since this workaround might confuse some people if they see the number 346 in the edit-page but 349 in the article. --> | ||
+ | |||
| {{LatestBuild}} = <div class="build buildLatest"> This page is in line with the latest [[Version_history#{{LatestBuild}}|build {{LatestBuild}}]]. | | {{LatestBuild}} = <div class="build buildLatest"> This page is in line with the latest [[Version_history#{{LatestBuild}}|build {{LatestBuild}}]]. | ||
+ | |||
| {{OneBeforeLatest}} = <div class="build"> This page '''might''' not be up-to-date ([[Version_history#{{{Version}}}|build {{{Version}}}]]).[[Category:Not_Up-to-date]][[Category:One-before-latest]] | | {{OneBeforeLatest}} = <div class="build"> This page '''might''' not be up-to-date ([[Version_history#{{{Version}}}|build {{{Version}}}]]).[[Category:Not_Up-to-date]][[Category:One-before-latest]] | ||
+ | |||
| #default = <div class="build"> This page '''might''' not be up-to-date ([[Version_history#{{{Version}}}|build {{{Version}}}]]).[[Category:Not_Up-to-date]] | | #default = <div class="build"> This page '''might''' not be up-to-date ([[Version_history#{{{Version}}}|build {{{Version}}}]]).[[Category:Not_Up-to-date]] | ||
}}</div></includeonly><noinclude> | }}</div></includeonly><noinclude> |
Revision as of 03:12, 2 April 2012
Put this code at the beginning of a page which should show up an "infobox" about it's actuality status:
{{Build |Version = XX }}
- Replace "XX" with "up-to-date" if the page stays up-to-date independent of new build releases (and you still want to show the box).
It shows up like this:This page is up-to-date.
- Replace "XX" with the current game build number (for example "2536") if the page is in line with that build.
It shows up like this (if the page is in line):This page is in line with the latest build 2536.
Or like this (if the page isn't):This page might not be up-to-date (build 200).
- Replace "XX" with "old" if the page contains seriously outdated information.
It shows up like this:This page is not up-to-date.