MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "ReplayInfo_(Civ5_Type)",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "4269": {
                "pageid": 4269,
                "ns": 0,
                "title": "ReligionType (Civ5 Type)",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Civ5 API Beta Banner}}\n''This page is a part of the [[Lua and UI Reference (Civ5)]].''<br/>\n\n\n\n{{TypeInfos5|ID.png|The <code>ReligionType</code> pseudo-type is actually a regular '''integer'''. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!\n* {{DB}} Integers labeled as <code>ReligionType</code> corresponds to the ''ID'' column of the {{Table5|Religions|CIV5Religions}} XML table.\n* {{Lua}} The standard (unmodded) values in the ''ID'' and ''Type'' columns are also stored in the '''ReligionTypes''' Lua enumeration.\n}}\n\n\n= Lua: the ReligionTypes enumeration =\nFiraxis provides a Lua enumeration named <code>ReligionTypes</code>. This is just a regular global table. Its keys are the constants' names and the pairs the corresponding values.\n* This specific enumeration contains data from the {{Table5|Religions|CIV5Religions}} data table.<br/>\n* They are stored as key/value pairs: the keys are the strings from the ''Type'' column and the values are the integers from the ''ID'' column.<br/>\n{{Warning}} Be careful: this enumeration do '''not''' reflect the changes, additions and deletions made by mods. As a result it is advised to rely on {{Type5|GameInfo}} instead.<br/>\n\n<br/>Below are the values found in this enumeration.\n<code>\n{|\n|-\n!align=\"left\" |Key\n!\n!align=\"left\" |Value \n|-\n|align=\"left\" |\"NO_RELIGION\"\n|\n|align=\"right\" |-1\n|-\n|align=\"left\" |\"RELIGION_PANTHEON\"\n|\n|align=\"right\" |0\n|}</code>\n\n\n= XML: the Religions table =\nHere are the ''ID'' and ''Type'' columns found in this table.\n<code>\n{|\n|-\n!align=\"left\" |ID\n!\n!align=\"left\" |Type\n|-\n|align=\"right\"|0\n|\n|RELIGION_PANTHEON\n|-\n|align=\"right\"|1\n|\n|RELIGION_BUDDHISM\n|-\n|align=\"right\"|2\n|\n|RELIGION_CHRISTIANITY\n|-\n|align=\"right\"|3\n|\n|RELIGION_CONFUCIANISM\n|-\n|align=\"right\"|4\n|\n|RELIGION_HINDUISM\n|-\n|align=\"right\"|5\n|\n|RELIGION_ISLAM\n|-\n|align=\"right\"|6\n|\n|RELIGION_JUDAISM\n|-\n|align=\"right\"|7\n|\n|RELIGION_SHINTO\n|-\n|align=\"right\"|8\n|\n|RELIGION_SIKHISM\n|-\n|align=\"right\"|9\n|\n|RELIGION_TAOISM\n|-\n|align=\"right\"|10\n|\n|RELIGION_TENGRIISM\n|-\n|align=\"right\"|11\n|\n|RELIGION_ZOROASTRIANISM\n|}</code>\n\n\n= Examples =\nHere is how to use the LUA enumeration to retrieve the ''ID'' from the ''type''. Those examples will return and assign the integer value 0.\n<syntaxhighlight lang=\"lua\" class=\"civ5-example\">\nlocal id = ReligionTypes.RELIGION_PANTHEON\nlocal id = ReligionTypes[\"RELIGION_PANTHEON\"]\n</syntaxhighlight>\nHere are different ways to query the database to retrieve the ''ID'' from the ''type''. Those examples will return and assign the integer value 0. See also {{Type5|GameInfo}}.\n<syntaxhighlight lang=\"lua\" class=\"civ5-example\">\nlocal id = GameInfo.Religions.RELIGION_PANTHEON.ID\nlocal id = GameInfo[\"Religions\"].[\"RELIGION_PANTHEON\"].ID\nlocal id = GameInfo.Religions{Type=\"RELIGION_PANTHEON\"}().ID\n</syntaxhighlight>\nAlternatively you could use the ''ID'' or the ''type'' to retrieve the value of the ''Description'' column. Those examples will return and assign the value TXT_KEY_RELIGION_PANTHEON.\n<syntaxhighlight lang=\"lua\" class=\"civ5-example\">\nlocal description = GameInfo.Religions[0].Description\nlocal description = GameInfo[\"Religions\"][0][\"Description\"]\nlocal description = GameInfo.Religions{ID=0}().Description\n</syntaxhighlight>\n\n\n=Used by=\n{|cellspacing=\"4\" cellpadding=\"0\" width=\"100%\" style=\"background-color:#F0F0F0\"\n<!-- \nADOPTRELIGIONFULLY\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|AdoptReligionFully}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nCONVERTPERCENTFOLLOWERS\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|ConvertPercentFollowers}}<b>(</b>{{Type5|ReligionType}} arg0, {{Type5|ReligionType}} arg1, '''int''' arg2<b>)</b></code>\n<!-- \nGETNUMFOLLOWERS\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''int'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|GetNumFollowers}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nGETPRESSUREPERTURN\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''int'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|GetPressurePerTurn}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nGETRELIGIOUSMAJORITY\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|ReligionType}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|GetReligiousMajority}}<b>(</b><!-- No arguments --><b>)</b></code>\n<!-- \nISHOLYCITYFORRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''bool'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|City}}:{{Func5|City|IsHolyCityForReligion}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nENHANCERELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|EnhanceReligion}}<b>(</b>{{Type5|PlayerID}} vaticanPlayer, {{Type5|ReligionType}} religion, {{Type5|BeliefType}} belief4, {{Type5|BeliefType}} belief5<b>)</b></code>\n<!-- \nFOUNDRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|FoundReligion}}<b>(</b>{{Type5|PlayerID}} vaticanPlayer, {{Type5|ReligionType}} religion, '''unknown''' arg2, {{Type5|BeliefType}} belief2, {{Type5|BeliefType}} belief3, {{Type5|BeliefType}} belief3, '''int''' arg6, {{Type5|City}} vaticanCity<b>)</b></code>\n<!-- \nGETFOUNDER\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|PlayerID}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|GetFounder}}<b>(</b>{{Type5|ReligionType}} arg0, '''int''' arg1<b>)</b></code>\n<!-- \nGETFOUNDERBENEFITSRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|ReligionType}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|GetFounderBenefitsReligion}}<b>(</b>{{Type5|PlayerID}} player<b>)</b></code>\n<!-- \nGETHOLYCITYFORRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|City}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|GetHolyCityForReligion}}<b>(</b>{{Type5|ReligionType}} religion, {{Type5|PlayerID}} player<b>)</b></code>\n<!-- \nGETNUMCITIESFOLLOWING\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''int'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|GetNumCitiesFollowing}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nGETRELIGIONNAME\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''string'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|GetReligionName}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nSETFOUNDER\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|SetFounder}}<b>(</b>{{Type5|ReligionType}} arg0, {{Type5|PlayerID}} newOwner<b>)</b></code>\n<!-- \nSETHOLYCITY\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Game}}.{{Func5|Game|SetHolyCity}}<b>(</b>{{Type5|ReligionType}} arg0, {{Type5|City}} newHolyCity<b>)</b></code>\n<!-- \nCITYCONVERTSRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|GameEvents}}.{{Func5|GameEvents|CityConvertsReligion}}<b>(</b>{{Type5|PlayerID}} owner, {{Type5|ReligionType}} religion, '''int''' x, '''int''' y<b>)</b></code>\n<!-- \nSENDENHANCERELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Network}}.{{Func5|Network|SendEnhanceReligion}}<b>(</b>{{Type5|PlayerID}} arg0, {{Type5|ReligionType}} CurrentReligion, '''unknown''' customName, '''unknown''' arg3, '''int''' arg4, '''int''' cityX, '''int''' cityY<b>)</b></code>\n<!-- \nSENDFOUNDRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code><!-- No return type --></code>\n|style=\"padding-left:6px\" |<code>{{Type5|Network}}.{{Func5|Network|SendFoundReligion}}<b>(</b>{{Type5|PlayerID}} arg0, {{Type5|ReligionType}} CurrentReligion, '''unknown''' customName, '''unknown''' arg3, '''unknown''' arg4, {{Type5|BeliefType}} arg5, {{Type5|BeliefType}} arg6, '''int''' cityX, '''int''' cityY<b>)</b></code>\n<!-- \nGETRELIGIONCREATEDBYPLAYER\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|ReligionType}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Player}}:{{Func5|Player|GetReligionCreatedByPlayer}}<b>(</b><!-- No arguments --><b>)</b></code>\n<!-- \nHASRELIGIONINMOSTCITIES\n-->\n|-\n|align=\"right\" width=\"200\" |<code>'''bool'''</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Player}}:{{Func5|Player|HasReligionInMostCities}}<b>(</b>{{Type5|ReligionType}} religion<b>)</b></code>\n<!-- \nGETMAJORITYRELIGIONAFTERSPREAD\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|ReligionType}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Unit}}:{{Func5|Unit|GetMajorityReligionAfterSpread}}<b>(</b><!-- No arguments --><b>)</b></code>\n<!-- \nGETRELIGION\n-->\n|-\n|align=\"right\" width=\"200\" |<code>{{Type5|ReligionType}}</code>\n|style=\"padding-left:6px\" |<code>{{Type5|Unit}}:{{Func5|Unit|GetReligion}}<b>(</b><!-- No arguments --><b>)</b></code>\n|}\n\n\n\n\n{{Civ5 API Footer}}\n[[Category:Civ5 Types|ReligionType]]"
                    }
                ]
            },
            "4535": {
                "pageid": 4535,
                "ns": 0,
                "title": "ReloadTextures (Civ5 API)",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{Civ5 API Beta Banner}}\n''This page is a part of the [[Lua and UI Reference (Civ5)]].''<br/>\n\n\n\n{{TypeInfos5|Function.png|This function is a built-in global function. No <code>include</code> statement is needed.\n}}\n\n\n=Usage=\n<code>'''void''' ReloadTextures<b>(</b>'''int''' arg0, '''int''' arg1<b>)</b></code>\n\n\n'''Parameters'''\n:{|\n|-\n|valign=\"top\" style=\"padding-right:6px;\"|arg0:\n|valign=\"top\"| ''No description available.''\n|-\n|valign=\"top\" style=\"padding-right:6px;\"|arg1:\n|valign=\"top\"| ''No description available.''\n|}\n\n\n=Source code samples=\n{{PseudoH4|DebugMenu.lua}}\n:<code>UI/InGame/DebugMenu.lua</code>\n:{{CodeBegin5}}\n{{CodeLine5|0081}}<syntaxhighlight lang=\"lua\">ReloadTextures(0,0);</syntaxhighlight>\n{{CodeEnd5}}\n\n\n\n\n{{Civ5 API Footer}}\n[[Category:Civ5 Methods and Functions|ReloadTextures]]"
                    }
                ]
            }
        }
    }
}