Talk:Cebu

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template errors[edit]

This article is displaying many "The time allocated for running scripts has expired" errors. I alerted the main author of the templates here. Anyone interested may like to offer suggestions. Johnuniq (talk) 03:24, 9 February 2017 (UTC)

The main problem is with the "Administrative divisions" section. Removing it from the preview changes the Lua time usage from 10 seconds to 2 seconds.
That section uses templates that include calls to Template:dtrif and Template:Lrwhitearrow, which are both simple Unicode character replacements. Those templates can probably be replaced by the Unicode characters themselves, although that is likely to make only a trivial improvement, given the complexity of, for example, Template:PH town table/mid.
Template:PH town table/mid5 includes nested calls to Template:sigfig, where it seems likely that only one call is necessary.
Template:PH wikidata is beyond me, but it looks like there is a lot of extra text in there. – Jonesey95 (talk) 01:22, 14 February 2017 (UTC)
I'll mention the discussion at VPT for others although it's likely you saw it.
The table at Cebu#Administrative divisions is remarkable. Consider the first row which is generated by the following wikitext (the first and last lines are to make it a valid table):
{|
{{PH town table/mid|072201000| [[Alcantara, Cebu|Alcantara]] |Q315636|13556|true|9579|7th|9=III,Af}}
|}
Replacing all of Cebu with the above wikitext, previewing, then searching the html source for NewPP shows the above row calls Template:PH_wikidata 15 times. That is a lot of overhead. The template does that because it cannot store values in a temporary variable, and so needs to call wikidata repeatedly. Johnuniq (talk) 03:31, 14 February 2017 (UTC)

I suggest to split off the Administrative divisions table into a separate main article, List of cities and municipalities in Cebu (similar to List of municipalities of Bohol). This article is big enough to justify a split, and this will really help in processing time. -- P 1 9 9   15:12, 14 February 2017 (UTC)

That seems unnecessary: the article is not too big, does not split in any obvious way and the table would not be worth its own article. Plus it would still have the same problems in another article. Better to fix the problems here. If that works out then similar fixes could be used in the Bohol table, and it would no longer need its own article (which looking at it does not make sense as a standalone article).--JohnBlackburnewordsdeeds 15:25, 14 February 2017 (UTC)

This issue has still not been satisfactorily resolved. – wbm1058 (talk) 16:00, 28 February 2018 (UTC)


I agree. I moved these tables here, so they don't "block" all the links etc in the article, thinking they'd be the culprit. I really only wanted to read the article, but half the refs and wikilinks were gone - Unfortunately my doing only resolved half… well maybe none of the problem. … the table seems to be fine when copied here. At least, all wikilinks and half the refs are back. Sorry, beyond me …--Satu Katja (talk) 17:13, 14 April 2019 (UTC)

|- | colspan=3 |

1st District 347,178

| colspan=3 |

2nd District 145,386

| colspan=3 |

3rd District 329,076

| colspan=3 |

4th District 289,179

|- | colspan=3 |

5th District 328,514

| colspan=3 |

6th District 297,878

| colspan=3 |

7th District 139,790

|- | colspan=3 |

Cebu City 1st (N) 290,760

| colspan=3 |

Cebu City 2nd (S) 340,243

| colspan=3 |

Lapu-Lapu Lone 188,815

|- | colspan="12" style="border-width:thin; border-color:black; border-style:solid solid solid double; background:#f8f8f8;"|

Total 2,696,819