Template:Game: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
No edit summary
m (Reverted edits by Guardian Soul (talk) to last version by DoorToNothing)
Line 1: Line 1:
function showGames(className)
{
    if(typeof(SKIP_GAMES) != 'undefined' && SKIP_GAMES)
        return;
    var titleDiv = document.getElementById(className);
    if(titleDiv == null || titleDiv == undefined)
        return;
    var cloneNode = titleDiv.cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}
function getFirstHeading()
{
    var elements = getElementsByClass('firstHeading', document.getElementById('content'), 'h1');
    return (elements != null && elements.length > 0) ? elements[0] : null;
}
function moveRating()
{
    var elements = getElementsByClass('ratings-top', document.getElementById('content'), 'div');
    if(elements[0] == null || elements[0] == undefined)
        return;
    var cloneNode = elements[0].cloneNode(true);
    var firstHeading = getFirstHeading();
    firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]);
    cloneNode.style.display = "block";
}
moveRating();
showGames('title-linktabs');
<div id="title-gameicons" id="title-linktabs" class="plainlinks firstHeading">{{gameicon|{{{1|}}}}}{{gameicon|{{{2|}}}}}{{gameicon|{{{3|}}}}}{{gameicon|{{{4|}}}}}{{gameicon|{{{5|}}}}}{{gameicon|{{{6|}}}}}{{gameicon|{{{7|}}}}}{{gameicon|{{{8|}}}}}{{gameicon|{{{9|}}}}}{{gameicon|{{{10|}}}}}</div>
<div id="title-gameicons" id="title-linktabs" class="plainlinks firstHeading">{{gameicon|{{{1|}}}}}{{gameicon|{{{2|}}}}}{{gameicon|{{{3|}}}}}{{gameicon|{{{4|}}}}}{{gameicon|{{{5|}}}}}{{gameicon|{{{6|}}}}}{{gameicon|{{{7|}}}}}{{gameicon|{{{8|}}}}}{{gameicon|{{{9|}}}}}{{gameicon|{{{10|}}}}}</div>
{{-}}<noinclude>
{{-}}<noinclude>

Revision as of 20:22, 4 October 2009

See also Template:gameicon

List of Images

Variables

{{game| }}

Use the below variables to indicate what references were used to generate the article's information.

{{game|KH1}} - Kingdom Hearts
{{game|FM1}} - Kingdom Hearts Final Mix
{{game|VCAST}} - Kingdom Hearts V CAST
{{game|COM}} - Kingdom Hearts: Chain of Memories
{{game|REC}} - Kingdom Hearts Re: Chain of Memories
{{game|KH2}} - Kingdom Hearts II
{{game|FM2}} - Kingdom Hearts II Final Mix
{{game|358}} - Kingdom Hearts 358/2 Days
{{game|KHC}} - Kingdom Hearts coded
{{game|KHM}} - Kingdom Hearts Mobile
{{game|BBS}} - Kingdom Hearts Birth by Sleep